﻿using AgencyManagerSystem.Common;
using Microsoft.AspNetCore.Authorization;
using System;
using System.Collections.Generic;
using System.Text;

namespace AgencyManagerSystem.Core
{
    public class RoleFlagAuthorizeAttributeAttribute: AuthorizeAttribute
    {
        public AppOpt Opt { get; private set; }
        public PolicyDomain DomainPolicy { get; private set; }
        public RoleFlagAuthorizeAttributeAttribute(PolicyDomain d_policy ,AppOpt opt):base(Definer.POLICY_NAME)
        {
            this.Opt = opt;
            this.DomainPolicy = d_policy;
        }
    }
}
